package com.zyk.scaffold.user.controller.tenantuser;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 用户信息响应
 * </p>
 *
 * @author zhouyk
 * @since 2021-09-23
 */
@Data
@ApiModel("用户信息响应")
public class TenantUserInfosResp implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "租户用户ID", required = true)
    private Long id;

    @ApiModelProperty(value = "系统用户ID", required = true)
    private Long userId;

    @ApiModelProperty(value = "账号", required = true)
    private String account;

    @ApiModelProperty(value = "角色编号", required = true)
    private List<Long> roleIds;

    @ApiModelProperty(value = "角色名称", required = true)
    private List<String> roleNames;

    @ApiModelProperty(value = "用户名", required = true)
    private String name;

    @ApiModelProperty(value = "手机号", required = true)
    private String phone;

    @ApiModelProperty(value = "邮箱", required = true)
    private String email;

    @ApiModelProperty(value = "账号是否可用 true-可用  false-不可用", required = true)
    private Boolean enable;

    @ApiModelProperty(value = "用户类型：0 业务用户  1管理用户", required = true)
    private Integer type;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "创建时间", required = true)
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新时间", required = true)
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "创建用户", required = true)
    private Long createUser;

    @ApiModelProperty(value = "最后修改用户", required = true)
    private Long updateUser;

    @ApiModelProperty(value = "创建用户名称", required = true)
    private String createUserName;

    @ApiModelProperty(value = "最后修改用户名称", required = true)
    private String updateUserName;

    @ApiModelProperty(value = "是否已删除 false-未删除 true-已删除")
    private Integer deleted;
}
